<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;
// use Illuminate\Support\Facades\Mail;
// use App\Mail\NikeOrderShipped;
use App\Jobs\Officevm01JobAmen;
use App\Jobs\Officevm01JobBack;

class TestEmailController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        //$this->middleware('auth');
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function email()
    {
        // Mail::to('3012476273@qq.com')->send(new NikeOrderShipped());

	// 队列的使用
	//Officevm01JobAmen::dispatch();
	Officevm01JobAmen::dispatch()->onQueue('amen');
	Officevm01JobBack::dispatch()->onQueue('back');
    }
}
